Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 24.3
A world with sound triggered by touching a set of emitter markers. |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Group { children [ # Sound emitter Sound { source DEF Source AudioClip { url "tone1.wav" loop FALSE } minFront 5.0 minBack 5.0 maxFront 10.0 maxBack 10.0 }, # Sound emitter markers Inline { url "sndmark.wrl" }, # Sensor DEF Touch TouchSensor { } ] } ROUTE Touch.touchTime TO Source.set_startTime